// ==UserScript==
// @name         IDM 下载提示页面 自动关闭
// @version      0.0.2
// @description  默认3秒后 IDM 下载提示页面 自动关闭(不知是因为破解还是其他原因，IDM总是提示IDM主程序损坏，要求下载文件，很烦)
// @author       cy2
// @match        https://www.internetdownloadmanager.com/download*
// @homepage     https://gitee.com/caiyaoyuan/script-sets/tree/master
// @namespace    https://gitee.com/caiyaoyuan/script-sets/blob/master/JavaScript/ClosePage-IDM.js
// @updateURL    https://gitee.com/caiyaoyuan/script-sets/raw/master/JavaScript/ClosePage-IDM.js
// @downloadURL  https://gitee.com/caiyaoyuan/script-sets/raw/master/JavaScript/ClosePage-IDM.js
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let delayTime = 3;
    setTimeout(()=>{(window || top.window || window.top).close();}, (delayTime || 0) * 1000);
})();